Add missing UTF-8 and raw string literal compiler diagnostics#50393
Merged
BillWagner merged 11 commits intodotnet:mainfrom Dec 9, 2025
Merged
Add missing UTF-8 and raw string literal compiler diagnostics#50393BillWagner merged 11 commits intodotnet:mainfrom
BillWagner merged 11 commits intodotnet:mainfrom
Conversation
Add the new diagnostics that weren't already included in an appropriate diagnostic issue.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds documentation for missing UTF-8 and raw string literal compiler diagnostics (CS8996, CS9026, and CS9047) to the C# compiler messages documentation. The changes consolidate these error codes into the existing string literal documentation article and remove them from the generic error page.
Key Changes
- Added CS8996, CS9026, and CS9047 error codes to the string literal documentation with detailed resolution guidance
- Removed CS9026 and CS9047 from the generic "sorry we don't have specifics" error page
- Updated the table of contents to include the new error codes in the string literal article
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| docs/csharp/language-reference/compiler-messages/string-literal.md | Added documentation for three missing compiler diagnostics (CS8996, CS9026, CS9047) with resolution techniques, updated title/description, and refactored guidance sections |
| docs/csharp/language-reference/toc.yml | Updated displayName to include the three newly documented error codes |
| docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md | Removed CS9026 and CS9047 from the generic error list since they now have dedicated documentation |
| .github/prompts/error-consolidation.md | Fixed spelling error in internal prompt documentation |
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/string-literal.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
meaghanlewis
approved these changes
Dec 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #49596
Internal previews